// [[ OnflowGenerator File UUID: 5367cd39979f4f6898db6c704ccb1e29  ]]
package com.itdct.onflow.system.role.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-02 16:19:43
 * @version 1.0
 * @description 系统角色编辑入参
 */
@Schema(name = "系统角色编辑入参", description = "系统角色编辑入参")
class SysRoleEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "角色名", example = "")
    @NotBlank(message = "请输入角色名", groups = [Add::class, Update::class])
    @Length(max = 50, message = "角色名不能超过50个字符", groups = [Add::class, Update::class])
    var name: String? = null

    @Schema(title = "角色编码", example = "")
    @NotBlank(message = "请输入角色编码", groups = [Add::class, Update::class])
    @Length(max = 100, message = "角色编码不能超过100个字符", groups = [Add::class, Update::class])
    var code: String? = null

    @Schema(title = "平台类型", example = "")
    @NotBlank(message = "请输入平台类型", groups = [Add::class, Update::class])
    @Length(max = 100, message = "平台类型不能超过100个字符", groups = [Add::class, Update::class])
    var platformType: String? = null

    @Schema(title = "是否启用", example = "")
    @NotNull(message = "请输入是否启用", groups = [Add::class, Update::class])
    var enable: Boolean? = null

    @Schema(title = "是否为超级管理员角色", example = "")
    @NotNull(message = "请输入是否为超级管理员角色", groups = [Add::class, Update::class])
    var superAdmin: Boolean? = null

    @Schema(title = "备注", example = "")
    @Length(max = 500, message = "备注不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]

    @Schema(title = "菜单id列表")
    var menuIds = mutableListOf<Long>()
}